package apralms

class System {
	String code
	String name
	
	float k2 = 0
	float ke = 0
	
	String classParas = ''
	
	Date dateCreated
	Date lastUpdated

    static constraints = {
		code blank:false, maxSize:10, unique:true
		name blank:false, maxSize:50, unique:true
    }
	
	static belongsTo = [project:Project]
	
	static hasMany = [products:Product, indexes:SystemIndex, facts:SystemFact]
	
	String toString(){
		"${name}[${code}]"
	}
}
